<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>offline</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
</head>

<body>
    <div class="temporarily_data" tapmode onclick="reload()">
        <img src="../image/no_date.png" />
        <span id="text">网络走丢了,您已走在世界最远的距离</span>
        <p>
            <div class="aui-btn aui-btn-block aui-btn-info">重新加载</div>
        </p>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function() {
     if (api.connectionType == 'none'){
     }else{
       $api.text($api.byId('text'), '主人系统已崩溃啦~');
     }
    }

    function reload() {
        if (api.connectionType == 'none') {

        } else {
          var NVNavigationBar = api.require('NVNavigationBar');
          NVNavigationBar.close({
              id: 'index'
          });
            var jsfun = 'location.reload();';
            api.execScript({
                name: 'root',
                frameName: 'index_win',
                script: jsfun
            });
            api.closeWin();
        }
    }
</script>

</html>
